package String;

public class TrimDemo {
    public static void main(String[] args) {
        String str ="   i love java   ";
       String trim  = str.trim();
       System.out.println(trim);//去掉两边空白字符
    }
}
